a=input("请输入n个数：")
a=a.split[' '].sort(a)
if len(a)/2!=0:
    print(a[(len(a)+1)/2])
else:
    print(((a[len(a)/2])+(a[len(a)/2+1]))/2)